C# how to remove an image in a folder

69

C# how to remove an image in a folder -

var filePath = Server.MapPath("~/Images/" + filename);
if(File.Exists(filePath))
{
    File.Delete(filePath);
}

Comments

Submit
0 Comments